﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SDramaStepMsg extends IMessageBase
    {
        public var dramaCode:int;
        public var step:int;
        public var stepType:int;
        public const _type:int = 6000;
        public static var _regist:SDramaStepMsg = new SDramaStepMsg(true);

        public function SDramaStepMsg(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SDramaStepMsg();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.dramaCode);
            param1.writeInt(this.step);
            param1.writeInt(this.stepType);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.dramaCode = param1.readInt();
            this.step = param1.readInt();
            this.stepType = param1.readInt();
            return;
        }// end function

    }
}
